<template>
	<view class="my-search-box" @click="emit('click')">
		<view class="my-search-box__radios">
			<uni-icons type="search" size="24"></uni-icons>
			<text class="my-search-box__radios--text">搜索</text>
		</view>
	</view>
</template>

<script lang="ts" setup>
const emit = defineEmits(['click']);
</script>

<style lang="scss">
.my-search-box {
	background-color: #c00000;
	height: 50px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 20rpx;
	.my-search-box__radios {
		width: 100%;
		padding: 10rpx 0;
		border-radius: 50rpx;
		background-color: #fff;
		display: flex;
		align-items: center;
		justify-content: center;
		.my-search-box__radios--text {
			margin-left: 10rpx;
		}
	}
}
</style>
